package models

import (
	"gitee.com/cjf8134/bbs_serve/internal/pkg/utils/constutil"
	"time"
)

type Ems struct {
	Model
	Code     string    `db:"code" json:"code"`
	Email    string    `db:"email" json:"email"`
	IP       string    `db:"ip" json:"ip"`
	Event    string    `db:"event" json:"event"`
	ExpireAt time.Time `db:"expire_at" json:"expire_at"`
}

func (Ems) TableName() string {
	return constutil.TablePrefix + "ems"
}
